//
//  RBCompeBasBallLiveView.m
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/13.
//

#import "RBCompeBasBallLiveView.h"
#import "RBCompeLiveTextModel.h"

@interface RBCompeBasBallLiveView ()
@property(strong,nonatomic)UIView *topLineView;
@property(strong,nonatomic)UIView *bgView;
//球队
@property(strong,nonatomic)UIView *teamView;
@property(strong,nonatomic)UIView *teamLeftView;
@property(strong,nonatomic)UIButton *teamButton;
@property(strong,nonatomic)UIView *teamRightView;
@property(strong,nonatomic)UILabel *homeTeamLabel;
@property(strong,nonatomic)UILabel *visTeamLabel;
//第一节
@property(strong,nonatomic)UIView *firstPerView;
@property(strong,nonatomic)UIView *firstLeftView;
@property(strong,nonatomic)UIButton *firstButton;
@property(strong,nonatomic)UIView *firstRightView;
@property(strong,nonatomic)UILabel *homeFirLabel;
@property(strong,nonatomic)UILabel *visFirLabel;
//第二节
@property(strong,nonatomic)UIView *secondPerView;
@property(strong,nonatomic)UIView *secondLeftView;
@property(strong,nonatomic)UIButton *secondButton;
@property(strong,nonatomic)UIView *secondRightView;
@property(strong,nonatomic)UILabel *homeSecLabel;
@property(strong,nonatomic)UILabel *visSecLabel;
//第三节
@property(strong,nonatomic)UIView *thirdPerView;
@property(strong,nonatomic)UIView *thirdLeftView;
@property(strong,nonatomic)UIButton *thirdButton;
@property(strong,nonatomic)UIView *thirdRightView;
@property(strong,nonatomic)UILabel *homeThirdLabel;
@property(strong,nonatomic)UILabel *visThirdLabel;
//第四节
@property(strong,nonatomic)UIView *fourthPerView;
@property(strong,nonatomic)UIView *fourthLeftView;
@property(strong,nonatomic)UIButton *fourthButton;
@property(strong,nonatomic)UIView *fourthRightView;
@property(strong,nonatomic)UILabel *homeFouLabel;
@property(strong,nonatomic)UILabel *visFouLabel;
//加时赛
@property(strong,nonatomic)UIView *extraView;
@property(strong,nonatomic)UIView *extraLeftView;
@property(strong,nonatomic)UIButton *extraButton;
@property(strong,nonatomic)UIView *extraRightView;
@property(strong,nonatomic)UILabel *homeExtLabel;
@property(strong,nonatomic)UILabel *visExtLabel;
//总分
@property(strong,nonatomic)UIView *totalView;
@property(strong,nonatomic)UIView *totalLeftView;
@property(strong,nonatomic)UIButton *totalButton;
@property(strong,nonatomic)UIView *totalRightView;
@property(strong,nonatomic)UILabel *homeTotLabel;
@property(strong,nonatomic)UILabel *visTotLabel;
//3分球得分
@property(strong,nonatomic)UIView *triseView;
@property(strong,nonatomic)UIView *triseLeftView;
@property(strong,nonatomic)UIButton *triseButton;
@property(strong,nonatomic)UIView *triseRightView;
@property(strong,nonatomic)UILabel *homeTriLabel;
@property(strong,nonatomic)UILabel *visTriLabel;
//2分球得分
@property(strong,nonatomic)UIView *dichView;
@property(strong,nonatomic)UIView *dichLeftView;
@property(strong,nonatomic)UIButton *dichButton;
@property(strong,nonatomic)UIView *dichRightView;
@property(strong,nonatomic)UILabel *homeDicLabel;
@property(strong,nonatomic)UILabel *viseDicLabel;
//罚球得分
@property(strong,nonatomic)UIView *freeView;
@property(strong,nonatomic)UIView *freeLeftView;
@property(strong,nonatomic)UIButton *freeButton;
@property(strong,nonatomic)UIView *freeRightView;
@property(strong,nonatomic)UILabel *homeFreeLabel;
@property(strong,nonatomic)UILabel *visFreeLabel;
//罚球命中率
@property(strong,nonatomic)UIView *hitView;
@property(strong,nonatomic)UIView *hitLeftView;
@property(strong,nonatomic)UIButton *hitButton;
@property(strong,nonatomic)UIView *hitRightView;
@property(strong,nonatomic)UILabel *homeHitLabel;
@property(strong,nonatomic)UILabel *visHitLabel;
//本节犯规数
@property(strong,nonatomic)UIView *foulView;
@property(strong,nonatomic)UIView *foulLeftView;
@property(strong,nonatomic)UIButton *foulButton;
@property(strong,nonatomic)UIView *foulRightView;
@property(strong,nonatomic)UILabel *homeFoulLabel;
@property(strong,nonatomic)UILabel *visFoulLabel;
//剩余暂停
@property(strong,nonatomic)UIView *pauseView;
@property(strong,nonatomic)UIView *pauseLeftView;
@property(strong,nonatomic)UIButton *pauseButton;
@property(strong,nonatomic)UIView *pauseRightView;
@property(strong,nonatomic)UILabel *homePauLabel;
@property(strong,nonatomic)UILabel *visPauLabel;
@end

@implementation RBCompeBasBallLiveView

- (instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        [self rb_initViewUI];
        [self setNeedsLayout];
    }
    return self;
}
-(void)rb_initViewUI{
    [self addSubview:self.topLineView];
    [self addSubview:self.bgView];
    [self.bgView addSubview:self.teamView];
    [self.teamView addSubview:self.teamLeftView];
    [self.teamLeftView addSubview:self.homeTeamLabel];
    [self.teamView addSubview:self.teamRightView];
    [self.teamRightView addSubview:self.teamButton];
    [self.teamRightView addSubview:self.visTeamLabel];
    [self.bgView addSubview:self.firstPerView];
    [self.firstPerView addSubview:self.firstLeftView];
    [self.firstLeftView addSubview:self.homeFirLabel];
    [self.firstPerView addSubview:self.firstRightView];
    [self.firstRightView addSubview:self.firstButton];
    [self.firstRightView addSubview:self.visFirLabel];
    [self.bgView addSubview:self.secondPerView];
    [self.secondPerView addSubview:self.secondLeftView];
    [self.secondLeftView addSubview:self.homeSecLabel];
    [self.secondPerView addSubview:self.secondRightView];
    [self.secondRightView addSubview:self.secondButton];
    [self.secondRightView addSubview:self.visSecLabel];
    [self.bgView addSubview:self.thirdPerView];
    [self.thirdPerView addSubview:self.thirdLeftView];
    [self.thirdLeftView addSubview:self.homeThirdLabel];
    [self.thirdPerView addSubview:self.thirdRightView];
    [self.thirdRightView addSubview:self.thirdButton];
    [self.thirdRightView addSubview:self.visThirdLabel];
    [self.bgView addSubview:self.fourthPerView];
    [self.fourthPerView addSubview:self.fourthLeftView];
    [self.fourthLeftView addSubview:self.homeFouLabel];
    [self.fourthPerView addSubview:self.fourthRightView];
    [self.fourthRightView addSubview:self.fourthButton];
    [self.fourthRightView addSubview:self.visFouLabel];
    [self.bgView addSubview:self.extraView];
    [self.extraView addSubview:self.extraLeftView];
    [self.extraLeftView addSubview:self.homeExtLabel];
    [self.extraView addSubview:self.extraRightView];
    [self.extraRightView addSubview:self.extraButton];
    [self.extraRightView addSubview:self.visExtLabel];
    [self.bgView addSubview:self.totalView];
    [self.totalView addSubview:self.totalLeftView];
    [self.totalLeftView addSubview:self.homeTotLabel];
    [self.totalView addSubview:self.totalRightView];
    [self.totalRightView addSubview:self.totalButton];
    [self.totalRightView addSubview:self.visTotLabel];
    [self.bgView addSubview:self.triseView];
    [self.triseView addSubview:self.triseLeftView];
    [self.triseLeftView addSubview:self.homeTriLabel];
    [self.triseView addSubview:self.triseRightView];
    [self.triseRightView addSubview:self.triseButton];
    [self.triseRightView addSubview:self.visTriLabel];
    [self.bgView addSubview:self.dichView];
    [self.dichView addSubview:self.dichLeftView];
    [self.dichLeftView addSubview:self.homeDicLabel];
    [self.dichView addSubview:self.dichRightView];
    [self.dichRightView addSubview:self.dichButton];
    [self.dichRightView addSubview:self.viseDicLabel];
    [self.bgView addSubview:self.freeView];
    [self.freeView addSubview:self.freeLeftView];
    [self.freeLeftView addSubview:self.homeFreeLabel];
    [self.freeView addSubview:self.freeRightView];
    [self.freeRightView addSubview:self.freeButton];
    [self.freeRightView addSubview:self.visFreeLabel];
    [self.bgView addSubview:self.hitView];
    [self.hitView addSubview:self.hitLeftView];
    [self.hitLeftView addSubview:self.homeHitLabel];
    [self.hitView addSubview:self.hitRightView];
    [self.hitRightView addSubview:self.hitButton];
    [self.hitRightView addSubview:self.visHitLabel];
    [self.bgView addSubview:self.foulView];
    [self.foulView addSubview:self.foulLeftView];
    [self.foulLeftView addSubview:self.homeFoulLabel];
    [self.foulView addSubview:self.foulRightView];
    [self.foulRightView addSubview:self.foulButton];
    [self.foulRightView addSubview:self.visFoulLabel];
    [self.bgView addSubview:self.pauseView];
    [self.pauseView addSubview:self.pauseLeftView];
    [self.pauseLeftView addSubview:self.homePauLabel];
    [self.pauseView addSubview:self.pauseRightView];
    [self.pauseRightView addSubview:self.pauseButton];
    [self.pauseRightView addSubview:self.visPauLabel];
    
    [self.topLineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(10));
    }];
    [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.topLineView.mas_bottom);
        make.left.mas_equalTo(RBScaleWidth(10));
        make.right.mas_equalTo(-RBScaleWidth(10));
        make.bottom.mas_equalTo(0);
    }];
    [self.teamView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RBScaleWidth(10));
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.teamLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeTeamLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.teamRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.teamLeftView.mas_right);
    }];
    [self.teamButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.teamButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visTeamLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.teamButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.firstPerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.teamView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.firstLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeFirLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.firstRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.firstLeftView.mas_right);
    }];
    [self.firstButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.firstButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visFirLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.firstButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.secondPerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.firstPerView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.secondLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeSecLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.secondRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.secondLeftView.mas_right);
    }];
    [self.secondButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.secondButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visSecLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.secondButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.thirdPerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.secondPerView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.thirdLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeThirdLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.thirdRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.thirdLeftView.mas_right);
    }];
    [self.thirdButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.thirdButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visThirdLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.thirdButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.fourthPerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.thirdPerView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.fourthLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeFouLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.fourthRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.fourthLeftView.mas_right);
    }];
    [self.fourthButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.fourthButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visFouLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.fourthButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.extraView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.fourthPerView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.extraLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeExtLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.extraRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.extraLeftView.mas_right);
    }];
    [self.extraButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.extraButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visExtLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.extraButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.totalView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.extraView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.totalLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeTotLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.totalRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.totalLeftView.mas_right);
    }];
    [self.totalButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.totalButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visTotLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.totalButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.triseView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.totalView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.triseLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeTriLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.triseRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.triseLeftView.mas_right);
    }];
    [self.triseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.triseButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visTriLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.triseButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.dichView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.triseView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.dichLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeDicLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    
    [self.dichRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.dichLeftView.mas_right);
    }];
    [self.dichButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.dichButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.viseDicLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.dichButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    
    [self.freeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.dichView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.freeLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeFreeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    
    [self.freeRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.freeLeftView.mas_right);
    }];
    [self.freeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.freeButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visFreeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.freeButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    
    [self.hitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.freeView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.hitLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeHitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.hitRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.hitLeftView.mas_right);
    }];
    [self.hitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.hitButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visHitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.hitButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    
    [self.foulView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.hitView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.foulLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homeFoulLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    [self.foulRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.foulLeftView.mas_right);
    }];
    [self.foulButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.foulButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visFoulLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.foulButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    
    [self.pauseView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.foulView.mas_bottom);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(RBScaleWidth(30));
    }];
    [self.pauseLeftView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.homePauLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    
    [self.pauseRightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.pauseLeftView.mas_right);
    }];
    [self.pauseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(0);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
    [self.pauseButton rb_layoutButtonWithEdgeInsetsStyle:RBButtonEdgeInsetsStyleLeft imageTitleSpace:10];
    [self.visPauLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(self.pauseButton.mas_right);
        make.width.mas_equalTo(RBScaleWidth(118));
    }];
}
- (void)setStatusArray:(NSMutableArray *)statusArray{
    _statusArray = statusArray;
    self.homeTeamLabel.text = self.homeNameZh;
    self.visTeamLabel.text = self.awayNameZh;
    
    for (RBCompeLiveStatsModel *model in statusArray) {
        NSString *midStr = model.home;
        model.home = model.away;
        model.away = midStr;
        if ([model.type intValue] == 100) {
            self.homeFirLabel.text = model.home;
            self.visFirLabel.text = model.away;
        }else if ([model.type intValue] == 101){
            self.homeSecLabel.text = model.home;
            self.visSecLabel.text = model.away;
        }else if ([model.type intValue] == 102){
            self.homeThirdLabel.text = model.home;
            self.visThirdLabel.text = model.away;
        }else if ([model.type intValue] == 103){
            self.homeFouLabel.text = model.home;
            self.visFouLabel.text = model.away;
        }else if ([model.type intValue] == 104){
            self.homeExtLabel.text = model.home;
            self.visExtLabel.text = model.away;
        }else if ([model.type intValue] == 1){
            self.homeTriLabel.text = [NSString stringWithFormat:@"%d",[model.home intValue]*3];
            self.visTriLabel.text =  [NSString stringWithFormat:@"%d",[model.away intValue]*3];
        }else if ([model.type intValue] == 2){
            self.homeDicLabel.text = [NSString stringWithFormat:@"%d",[model.home intValue]*2];
            self.viseDicLabel.text = [NSString stringWithFormat:@"%d",[model.away intValue]*2];
        }else if ([model.type intValue] == 3){
            self.homeFreeLabel.text = model.home;
            self.visFreeLabel.text = model.away;
        }else if ([model.type intValue] == 6){
            self.homeHitLabel.text = [NSString stringWithFormat:@"%.0f",[model.home floatValue]];
            self.homeHitLabel.text = [NSString stringWithFormat:@"%@%@",self.homeHitLabel.text,@"%"];
            self.visHitLabel.text =  [NSString stringWithFormat:@"%.0f",[model.away floatValue]];
            self.visHitLabel.text = [NSString stringWithFormat:@"%@%@",self.visHitLabel.text,@"%"];
        }else if ([model.type intValue] == 5){
            self.homeFoulLabel.text = model.home;
            self.visFoulLabel.text = model.away;
        }else if ([model.type intValue] == 4){
            self.homePauLabel.text = model.home;
            self.visPauLabel.text = model.away;
        }
    }
    self.homeTotLabel.text = [NSString stringWithFormat:@"%d",[self.homeExtLabel.text intValue]+[self.homeFouLabel.text intValue]+[self.homeThirdLabel.text intValue]+[self.homeSecLabel.text intValue]+[self.homeFirLabel.text intValue]];
    self.visTotLabel.text = [NSString stringWithFormat:@"%d",[self.visExtLabel.text intValue] + [self.visFouLabel.text intValue]+ [self.visThirdLabel.text intValue]+ [self.visSecLabel.text intValue]+ [self.visFirLabel.text intValue]];
}
- (UIView *)topLineView{
    if(_topLineView==nil){
        _topLineView = [[UIView alloc] init];
        _topLineView.backgroundColor = RBColor(242, 245, 250);
    }
    return _topLineView;
}
- (UIView *)bgView{
    if(_bgView==nil){
        _bgView = [[UIView alloc] init];
        _bgView.backgroundColor = [UIColor whiteColor];
    }
    return _bgView;
}
- (UIView *)teamView{
    if(_teamView==nil){
        _teamView = [[UIView alloc] init];
        _teamView.backgroundColor = [UIColor whiteColor];
    }
    return _teamView;
}
- (UIView *)teamLeftView{
    if(_teamLeftView==nil){
        _teamLeftView = [[UIView alloc] init];
        _teamLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _teamLeftView;
}
- (UIButton *)teamButton{
    if(_teamButton==nil){
        _teamButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_teamButton setTitle:@"球队" forState:UIControlStateNormal];
        [_teamButton setImage:[UIImage imageNamed:@"icon_vsqd"] forState:UIControlStateNormal];
        [_teamButton setImage:[UIImage imageNamed:@"icon_vsqd"] forState:UIControlStateHighlighted];
        [_teamButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _teamButton.titleLabel.font = RBPingFangFont(12);
    }
    return _teamButton;
}
- (UIView *)teamRightView{
    if(_teamRightView==nil){
        _teamRightView = [[UIView alloc] init];
        _teamRightView.backgroundColor = [UIColor whiteColor];
    }
    return _teamRightView;
}
-(UILabel *)homeTeamLabel{
    if(_homeTeamLabel==nil){
        _homeTeamLabel = [UILabel rb_labelWithTitle:@"-" color:RBColor(76, 136, 255) font:RBPingFangMediumFont(13) alignment:NSTextAlignmentCenter];
        _homeTeamLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeTeamLabel;
}
-(UILabel *)visTeamLabel{
    if(_visTeamLabel==nil){
        _visTeamLabel = [UILabel rb_labelWithTitle:@"-" color:RBColor(242, 48, 48) font:RBPingFangMediumFont(13) alignment:NSTextAlignmentCenter];
        _visTeamLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visTeamLabel;
}
- (UIView *)firstPerView{
    if(_firstPerView==nil){
        _firstPerView = [[UIView alloc] init];
        _firstPerView.backgroundColor = [UIColor whiteColor];
    }
    return _firstPerView;
}
- (UIView *)firstLeftView{
    if(_firstLeftView==nil){
        _firstLeftView = [[UIView alloc] init];
        _firstLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _firstLeftView;
}
- (UIButton *)firstButton{
    if(_firstButton==nil){
        _firstButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_firstButton setTitle:@"第一节" forState:UIControlStateNormal];
        [_firstButton setImage:[UIImage imageNamed:@"icon_lanqiu_dyxj"] forState:UIControlStateNormal];
        [_firstButton setImage:[UIImage imageNamed:@"icon_lanqiu_dyxj"] forState:UIControlStateHighlighted];
        [_firstButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _firstButton.titleLabel.font = RBPingFangFont(12);
    }
    return _firstButton;
}
- (UIView *)firstRightView{
    if(_firstRightView==nil){
        _firstRightView = [[UIView alloc] init];
        _firstRightView.backgroundColor = [UIColor whiteColor];
    }
    return _firstRightView;
}
-(UILabel *)homeFirLabel{
    if(_homeFirLabel==nil){
        _homeFirLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeFirLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeFirLabel;
}
-(UILabel *)visFirLabel{
    if(_visFirLabel==nil){
        _visFirLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visFirLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visFirLabel;
}
- (UIView *)secondPerView{
    if(_secondPerView==nil){
        _secondPerView = [[UIView alloc] init];
        _secondPerView.backgroundColor = [UIColor whiteColor];
    }
    return _secondPerView;
}
- (UIView *)secondLeftView{
    if(_secondLeftView==nil){
        _secondLeftView = [[UIView alloc] init];
        _secondLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _secondLeftView;
}
- (UIButton *)secondButton{
    if(_secondButton==nil){
        _secondButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_secondButton setTitle:@"第二节" forState:UIControlStateNormal];
        [_secondButton setImage:[UIImage imageNamed:@"icon_lanqiu_dexj"] forState:UIControlStateNormal];
        [_secondButton setImage:[UIImage imageNamed:@"icon_lanqiu_dexj"] forState:UIControlStateHighlighted];
        [_secondButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _secondButton.titleLabel.font = RBPingFangFont(12);
    }
    return _secondButton;
}
- (UIView *)secondRightView{
    if(_secondRightView==nil){
        _secondRightView = [[UIView alloc] init];
        _secondRightView.backgroundColor = [UIColor whiteColor];
    }
    return _secondRightView;
}
-(UILabel *)homeSecLabel{
    if(_homeSecLabel==nil){
        _homeSecLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeSecLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeSecLabel;
}
-(UILabel *)visSecLabel{
    if(_visSecLabel==nil){
        _visSecLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visSecLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visSecLabel;
}
- (UIView *)thirdPerView{
    if(_thirdPerView==nil){
        _thirdPerView = [[UIView alloc] init];
        _thirdPerView.backgroundColor = [UIColor whiteColor];
    }
    return _thirdPerView;
}
- (UIView *)thirdLeftView{
    if(_thirdLeftView==nil){
        _thirdLeftView = [[UIView alloc] init];
        _thirdLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _thirdLeftView;
}
- (UIButton *)thirdButton{
    if(_thirdButton==nil){
        _thirdButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_thirdButton setTitle:@"第三节" forState:UIControlStateNormal];
        [_thirdButton setImage:[UIImage imageNamed:@"icon_lanqiu_dsxj"] forState:UIControlStateNormal];
        [_thirdButton setImage:[UIImage imageNamed:@"icon_lanqiu_dsxj"] forState:UIControlStateHighlighted];
        [_thirdButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _thirdButton.titleLabel.font = RBPingFangFont(12);
    }
    return _thirdButton;
}
- (UIView *)thirdRightView{
    if(_thirdRightView==nil){
        _thirdRightView = [[UIView alloc] init];
        _thirdRightView.backgroundColor = [UIColor whiteColor];
    }
    return _thirdRightView;
}
-(UILabel *)homeThirdLabel{
    if(_homeThirdLabel==nil){
        _homeThirdLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeThirdLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeThirdLabel;
}
-(UILabel *)visThirdLabel{
    if(_visThirdLabel==nil){
        _visThirdLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visThirdLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visThirdLabel;
}
- (UIView *)fourthPerView{
    if(_fourthPerView==nil){
        _fourthPerView = [[UIView alloc] init];
        _fourthPerView.backgroundColor = [UIColor whiteColor];
    }
    return _fourthPerView;
}
- (UIView *)fourthLeftView{
    if(_fourthLeftView==nil){
        _fourthLeftView = [[UIView alloc] init];
        _fourthLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _fourthLeftView;
}
- (UIButton *)fourthButton{
    if(_fourthButton==nil){
        _fourthButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_fourthButton setTitle:@"第四节" forState:UIControlStateNormal];
        [_fourthButton setImage:[UIImage imageNamed:@"icon_lanqiu_dsixj"] forState:UIControlStateNormal];
        [_fourthButton setImage:[UIImage imageNamed:@"icon_lanqiu_dsixj"] forState:UIControlStateHighlighted];
        [_fourthButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _fourthButton.titleLabel.font = RBPingFangFont(12);
    }
    return _fourthButton;
}
- (UIView *)fourthRightView{
    if(_fourthRightView==nil){
        _fourthRightView = [[UIView alloc] init];
        _fourthRightView.backgroundColor = [UIColor whiteColor];
    }
    return _fourthRightView;
}
-(UILabel *)homeFouLabel{
    if(_homeFouLabel==nil){
        _homeFouLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeFouLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeFouLabel;
}
-(UILabel *)visFouLabel{
    if(_visFouLabel==nil){
        _visFouLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visFouLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visFouLabel;
}
- (UIView *)extraView{
    if(_extraView==nil){
        _extraView = [[UIView alloc] init];
        _extraView.backgroundColor = [UIColor whiteColor];
    }
    return _extraView;
}
- (UIView *)extraLeftView{
    if(_extraLeftView==nil){
        _extraLeftView = [[UIView alloc] init];
        _extraLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _extraLeftView;
}
- (UIButton *)extraButton{
    if(_extraButton==nil){
        _extraButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_extraButton setTitle:@"加时赛" forState:UIControlStateNormal];
        [_extraButton setImage:[UIImage imageNamed:@"icon_lanqiu_jias"] forState:UIControlStateNormal];
        [_extraButton setImage:[UIImage imageNamed:@"icon_lanqiu_jias"] forState:UIControlStateHighlighted];
        [_extraButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _extraButton.titleLabel.font = RBPingFangFont(12);
    }
    return _extraButton;
}
- (UIView *)extraRightView{
    if(_extraRightView==nil){
        _extraRightView = [[UIView alloc] init];
        _extraRightView.backgroundColor = [UIColor whiteColor];
    }
    return _extraRightView;
}
-(UILabel *)homeExtLabel{
    if(_homeExtLabel==nil){
        _homeExtLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeExtLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeExtLabel;
}
-(UILabel *)visExtLabel{
    if(_visExtLabel==nil){
        _visExtLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visExtLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visExtLabel;
}
- (UIView *)totalView{
    if(_totalView==nil){
        _totalView = [[UIView alloc] init];
        _totalView.backgroundColor = [UIColor whiteColor];
    }
    return _totalView;
}
- (UIView *)totalLeftView{
    if(_totalLeftView==nil){
        _totalLeftView = [[UIView alloc] init];
        _totalLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _totalLeftView;
}
- (UIButton *)totalButton{
    if(_totalButton==nil){
        _totalButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_totalButton setTitle:@"总分" forState:UIControlStateNormal];
        [_totalButton setImage:[UIImage imageNamed:@"icon_lanqiu_zf"] forState:UIControlStateNormal];
        [_totalButton setImage:[UIImage imageNamed:@"icon_lanqiu_zf"] forState:UIControlStateHighlighted];
        [_totalButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _totalButton.titleLabel.font = RBPingFangFont(12);
    }
    return _totalButton;
}
- (UIView *)totalRightView{
    if(_totalRightView==nil){
        _totalRightView = [[UIView alloc] init];
        _totalRightView.backgroundColor = [UIColor whiteColor];
    }
    return _totalRightView;
}
-(UILabel *)homeTotLabel{
    if(_homeTotLabel==nil){
        _homeTotLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeTotLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeTotLabel;
}
-(UILabel *)visTotLabel{
    if(_visTotLabel==nil){
        _visTotLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visTotLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visTotLabel;
}
- (UIView *)triseView{
    if(_triseView==nil){
        _triseView = [[UIView alloc] init];
        _triseView.backgroundColor = [UIColor whiteColor];
    }
    return _triseView;
}
- (UIView *)triseLeftView{
    if(_triseLeftView==nil){
        _triseLeftView = [[UIView alloc] init];
        _triseLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _triseLeftView;
}
- (UIButton *)triseButton{
    if(_triseButton==nil){
        _triseButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_triseButton setTitle:@"3分球得分" forState:UIControlStateNormal];
        [_triseButton setImage:[UIImage imageNamed:@"icon_lanqiu_sfq"] forState:UIControlStateNormal];
        [_triseButton setImage:[UIImage imageNamed:@"icon_lanqiu_sfq"] forState:UIControlStateHighlighted];
        [_triseButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _triseButton.titleLabel.font = RBPingFangFont(12);
    }
    return _triseButton;
}
- (UIView *)triseRightView{
    if(_triseRightView==nil){
        _triseRightView = [[UIView alloc] init];
        _triseRightView.backgroundColor = [UIColor whiteColor];
    }
    return _triseRightView;
}
-(UILabel *)homeTriLabel{
    if(_homeTriLabel==nil){
        _homeTriLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeTriLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeTriLabel;
}
-(UILabel *)visTriLabel{
    if(_visTriLabel==nil){
        _visTriLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visTriLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visTriLabel;
}
- (UIView *)dichView{
    if(_dichView==nil){
        _dichView = [[UIView alloc] init];
        _dichView.backgroundColor = [UIColor whiteColor];
    }
    return _dichView;
}
- (UIView *)dichLeftView{
    if(_dichLeftView==nil){
        _dichLeftView = [[UIView alloc] init];
        _dichLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _dichLeftView;
}
- (UIButton *)dichButton{
    if(_dichButton==nil){
        _dichButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_dichButton setTitle:@"2分球得分" forState:UIControlStateNormal];
        [_dichButton setImage:[UIImage imageNamed:@"icon_lanqiu_efq"] forState:UIControlStateNormal];
        [_dichButton setImage:[UIImage imageNamed:@"icon_lanqiu_efq"] forState:UIControlStateHighlighted];
        [_dichButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _dichButton.titleLabel.font = RBPingFangFont(12);
    }
    return _dichButton;
}
- (UIView *)dichRightView{
    if(_dichRightView==nil){
        _dichRightView = [[UIView alloc] init];
        _dichRightView.backgroundColor = [UIColor whiteColor];
    }
    return _dichRightView;
}
-(UILabel *)homeDicLabel{
    if(_homeDicLabel==nil){
        _homeDicLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeDicLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeDicLabel;
}
-(UILabel *)viseDicLabel{
    if(_viseDicLabel==nil){
        _viseDicLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _viseDicLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _viseDicLabel;
}
- (UIView *)freeView{
    if(_freeView==nil){
        _freeView = [[UIView alloc] init];
        _freeView.backgroundColor = [UIColor whiteColor];
    }
    return _freeView;
}
- (UIView *)freeLeftView{
    if(_freeLeftView==nil){
        _freeLeftView = [[UIView alloc] init];
        _freeLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _freeLeftView;
}
- (UIButton *)freeButton{
    if(_freeButton==nil){
        _freeButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_freeButton setTitle:@"罚球得分" forState:UIControlStateNormal];
        [_freeButton setImage:[UIImage imageNamed:@"icon_lanqiu_faq_l"] forState:UIControlStateNormal];
        [_freeButton setImage:[UIImage imageNamed:@"icon_lanqiu_faq_l"] forState:UIControlStateHighlighted];
        [_freeButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _freeButton.titleLabel.font = RBPingFangFont(12);
    }
    return _freeButton;
}
- (UIView *)freeRightView{
    if(_freeRightView==nil){
        _freeRightView = [[UIView alloc] init];
        _freeRightView.backgroundColor = [UIColor whiteColor];
    }
    return _freeRightView;
}
-(UILabel *)homeFreeLabel{
    if(_homeFreeLabel==nil){
        _homeFreeLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeFreeLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeFreeLabel;
}
-(UILabel *)visFreeLabel{
    if(_visFreeLabel==nil){
        _visFreeLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visFreeLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visFreeLabel;
}
- (UIView *)hitView{
    if(_hitView==nil){
        _hitView = [[UIView alloc] init];
        _hitView.backgroundColor = [UIColor whiteColor];
    }
    return _hitView;
}
- (UIView *)hitLeftView{
    if(_hitLeftView==nil){
        _hitLeftView = [[UIView alloc] init];
        _hitLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _hitLeftView;
}
- (UIView *)hitRightView{
    if(_hitRightView==nil){
        _hitRightView = [[UIView alloc] init];
        _hitRightView.backgroundColor = [UIColor whiteColor];
    }
    return _hitRightView;
}
- (UIButton *)hitButton{
    if(_hitButton==nil){
        _hitButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_hitButton setTitle:@"罚球命中率" forState:UIControlStateNormal];
        [_hitButton setImage:[UIImage imageNamed:@"icon_lanqiu_fqmzl_l"] forState:UIControlStateNormal];
        [_hitButton setImage:[UIImage imageNamed:@"icon_lanqiu_fqmzl_l"] forState:UIControlStateHighlighted];
        [_hitButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _hitButton.titleLabel.font = RBPingFangFont(12);
    }
    return _hitButton;
}
-(UILabel *)homeHitLabel{
    if(_homeHitLabel==nil){
        _homeHitLabel = [UILabel rb_labelWithTitle:@"-" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeHitLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeHitLabel;
}
-(UILabel *)visHitLabel{
    if(_visHitLabel==nil){
        _visHitLabel = [UILabel rb_labelWithTitle:@"-" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visHitLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visHitLabel;
}

- (UIView *)foulView{
    if(_foulView==nil){
        _foulView = [[UIView alloc] init];
        _foulView.backgroundColor = [UIColor whiteColor];
    }
    return _foulView;
}
- (UIView *)foulLeftView{
    if(_foulLeftView==nil){
        _foulLeftView = [[UIView alloc] init];
        _foulLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _foulLeftView;
}
- (UIButton *)foulButton{
    if(_foulButton==nil){
        _foulButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_foulButton setTitle:@"本节犯规数" forState:UIControlStateNormal];
        [_foulButton setImage:[UIImage imageNamed:@"icon_lanqiu_bjfg"] forState:UIControlStateNormal];
        [_foulButton setImage:[UIImage imageNamed:@"icon_lanqiu_bjfg"] forState:UIControlStateHighlighted];
        [_foulButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _foulButton.titleLabel.font = RBPingFangFont(12);
    }
    return _foulButton;
}
- (UIView *)foulRightView{
    if(_foulRightView==nil){
        _foulRightView = [[UIView alloc] init];
        _foulRightView.backgroundColor = [UIColor whiteColor];
    }
    return _foulRightView;
}
-(UILabel *)homeFoulLabel{
    if(_homeFoulLabel==nil){
        _homeFoulLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homeFoulLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homeFoulLabel;
}
-(UILabel *)visFoulLabel{
    if(_visFoulLabel==nil){
        _visFoulLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visFoulLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visFoulLabel;
}
- (UIView *)pauseView{
    if(_pauseView==nil){
        _pauseView = [[UIView alloc] init];
        _pauseView.backgroundColor = [UIColor whiteColor];
    }
    return _pauseView;
}
- (UIView *)pauseLeftView{
    if(_pauseLeftView==nil){
        _pauseLeftView = [[UIView alloc] init];
        _pauseLeftView.backgroundColor = [UIColor whiteColor];
    }
    return _pauseLeftView;
}
- (UIButton *)pauseButton{
    if(_pauseButton==nil){
        _pauseButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_pauseButton setTitle:@"剩余暂停" forState:UIControlStateNormal];
        [_pauseButton setImage:[UIImage imageNamed:@"icon_lanqiu_syzt"] forState:UIControlStateNormal];
        [_pauseButton setImage:[UIImage imageNamed:@"icon_lanqiu_syzt"] forState:UIControlStateHighlighted];
        [_pauseButton setTitleColor:RBColor(51, 51, 51) forState:UIControlStateNormal];
        _pauseButton.titleLabel.font = RBPingFangFont(12);
    }
    return _pauseButton;
}
- (UIView *)pauseRightView{
    if(_pauseRightView==nil){
        _pauseRightView = [[UIView alloc] init];
        _pauseRightView.backgroundColor = [UIColor whiteColor];
    }
    return _pauseRightView;
}
-(UILabel *)homePauLabel{
    if(_homePauLabel==nil){
        _homePauLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(76, 136, 255) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _homePauLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _homePauLabel;
}
-(UILabel *)visPauLabel{
    if(_visPauLabel==nil){
        _visPauLabel = [UILabel rb_labelWithTitle:@"0" color:RBColor(242, 48, 48) font:RBPingFangFont(13) alignment:NSTextAlignmentCenter];
        _visPauLabel.backgroundColor = RBColor(255, 255, 255);
    }
    return _visPauLabel;
}

@end
